package com.itany.netclass.service;

import com.itany.mvc.util.CommonsMultipartFile;
import com.itany.netclass.entity.Chapter;
import com.itany.netclass.exception.*;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * Author:sjy@itany.com
 * Date:2021/10/16 18:48
 * Version:1.0-SNAPSHOT
 */
public interface ChapterService {
    public List<Chapter> findAllChapterByCourseId(String courseId) throws ServiceException, NullSringException;

    public List<Chapter> findChapterByForm(String courseId, String chapterName, String chapterInfo, String kaishitime, String jieshutime, String status) throws NullSringException, ServiceException;

    public void yongChapterById(String courseId, String chapterId, String status) throws Exception;

    public void jianchaTitle(String chapterId, String courseId, String title) throws NullSringException, CharpetExistException, ServiceException;

    public void jianchaInfo(String info) throws NullSringException, ServiceException;

    public void jianchaZhiyuantitle(String zhiyuantitle) throws NullSringException, ResourceExistException, ServiceException;

    public void jianchaCostNum(String costNum) throws NullSringException, TpyeException, ServiceException;

    public void jianchaResource(List<CommonsMultipartFile> list, String resourceType) throws NullSringException, TpyeException, BuPiPeiException, ServiceException;

    public void addChapterAndResource(HttpSession session, String title, String info, String resourceTitle, String costType, String costNum, String resourceType, List<CommonsMultipartFile> list) throws Exception;

    public Chapter findChapterAndResourceByChapterId(String chapterId) throws ServiceException;

    public void modifyChapterAndResource(HttpSession session, String chapterId, String title, String info, String resourceTitle, String costType, String costNum, String resourceType, List<CommonsMultipartFile> list) throws Exception;
}
